package com.example.fenye.service.forum.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.fenye.dao.forum.PostDao;
import com.example.fenye.entity.forum.Post;
import com.example.fenye.service.forum.PostService;

@Service
public class PostServiceImpl implements PostService {

	@Resource
	PostDao postDao;
	
	
	@Override
	public Long addPost(Post post) {
		Long postId = postDao.insertPost(post);
		return postId;
	}


	@Override
	public List<Post> getPostListByTopicId(Long topicid) {
		return postDao.getPostListByTopicId(topicid);
	}
	
	

}
